package com.ziyun.pop.mall.base.service;

import org.springframework.stereotype.Service;

/**
 * 系统平台功能访问入口，所有方法应该支持缓存或者快速访问
 * 
 * @author xiandafu
 */
@Service
public class CorePlatformService {

	// 菜单树，组织机构树，功能树缓存标记
	public static final String MENU_TREE_CACHE = "cache:core:menuTree";
	public static final String ORG_TREE_CACHE = "cache:core:orgTree";
	public static final String FUNCTION_TREE_CACHE = "cache:core:functionTree";
	// 字典列表
	public static final String DICT_CACHE_TYPE = "cache:core:dictType";
	public static final String DICT_CACHE_VALUE = "cache:core:dictValue";
	public static final String DICT_CACHE_SAME_LEVEL = "cache:core:ditcSameLevel";
	public static final String DICT_CACHE_CHILDREN = "cache:core:dictChildren";
	public static final String USER_FUNCTION_ACCESS_CACHE = "cache:core:userFunctionAccess";
	public static final String USER_FUNCTION_CHIDREN_CACHE = "ccache:core:functionChildren";
	public static final String FUNCTION_CACHE = "cache:core:function";

	public static final String USER_DATA_ACCESS_CACHE = "cache:core:userDataAccess";
	public static final String USER_MENU_CACHE = "cache:core:userMenu";

	/* 当前用户会话 */
	public static final String ACCESS_CURRENT_USER = "core:user";
	/* 当前登录用户所在部门 */
	public static final String ACCESS_CURRENT_ORG = "core:currentOrg";
	/* 用户可选部门 */
	public static final String ACCESS_USER_ORGS = "core:orgs";

	public static final String ACCESS_SUPPER_ADMIN = "admin";
	/* erp 平台跳转账号 */
	public static final String ERP_PRIMARY_USERNAME = "username";
	/* erp 平台跳转密码 */
	public static final String ERP_PRIMARY_PASSWORD = "password";

	public static final String ERP_PRIMARY_PASSWORD_OLD = "passwordold";


}
